package day017.File;

import java.io.File;
import java.io.IOException;

public class FileDemo4 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("day17_demo\\aaa");
        f1.mkdir();
        File f2 = new File("day17_demo\\a.txt");
        f2.createNewFile();

        System.out.println(f1.isDirectory());
        System.out.println(f2.isDirectory());

        System.out.println(f1.isFile());
        System.out.println(f2.isFile());

        System.out.println(f1.exists());

        System.out.println(f1.getAbsolutePath());

        System.out.println(f1.getPath());

        System.out.println(f2.getName());
    }
}
